package com.megan.design.pattern.builder;

/**
 * @author: megan
 * @eMail: meganmail@vip.qq.com
 * @date: 2019/1/10 16:33
 * @version: v1.0
 * @description:
 */
public class CourseActualBuilder extends CourseBuilder {

    private Course course = new Course();

    @Override
    public void builderCourseName(String courseName) {
        course.setCourseName(courseName);
    }

    @Override
    public void builderCoursePPT(String coursePPT) {
        course.setCoursePPT(coursePPT);
    }

    @Override
    public void builderCourseVideo(String courseVideo) {
        course.setCourseVideo(courseVideo);
    }

    @Override
    public void builderCourseArticle(String courseArticle) {
        course.setCourseArticle(courseArticle);
    }

    @Override
    public void builderCourseQa(String courseQa) {
        course.setCourseQa(courseQa);
    }

    @Override
    public Course makeCourse() {
        return course;
    }
}
